package service

import (
	"context"
	"ruoyi-go-echo-ddd/internal/domain/model"
	"ruoyi-go-echo-ddd/internal/domain/repository"
)

type SysUserPostService struct {
	repo repository.SysUserPostRepository
}

func NewSysUserPostService(repo repository.SysUserPostRepository) *SysUserPostService {
	return &SysUserPostService{
		repo: repo,
	}
}

func (s *SysUserPostService) BatchInsert(ctx context.Context, list []*model.SysUserPost) (int64, error) {
	return s.repo.BatchInsert(ctx, list)
}

func (s *SysUserPostService) DeleteByUserId(ctx context.Context, userId int64) (int64, error) {
	return s.repo.DeleteByUserId(ctx, userId)
}
